﻿namespace $safeprojectname$;

public class AddinActivator
{
    #region Gaf 插件激活器接口方法
    //void OnAddinStateChanged(int addinId, string addinName, int addinState)
    //{
    //    if (addinName == "IncludeEvent")
    //    {
    //        Console.WriteLine($"{addinId} [{addinName}] {addinState}");
    //    }
    //}

    //public void Configure(IServiceCollection? services)
    //{
    //}

    ///// <summary>
    ///// Addin规约验证
    ///// </summary>
    ///// <param name="context"></param>
    ///// <returns></returns>
    //public bool Match(IServiceProvider? provider)
    //{
    //    return true;
    //}

    /// <summary>
    /// 应用启动
    /// </summary>
    /// <param name="provider"></param>
    public void Start(IServiceProvider? provider = null)
    {
    }

    ///// <summary>
    ///// 应用停止
    ///// </summary>
    ///// <param name="context"></param>
    //public void Stop()
    //{
    //}
    #endregion
}
